﻿using System;
using System.Data;
using System.Diagnostics;

namespace CustomControlPractice
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable table = new DataTable();
            table.Columns.Add("Indicator",typeof(bool));
            table.Columns.Add("Column1");
            table.Columns.Add("Column2");
            for (int i = 0; i < 10; i++)
            {
                table.Rows.Add(true,string.Format("Column1-{0}", i), string.Format("Column2-{0}", i));
            }
            customGridView1.DataSource = table;
            customGridView1.DataBind();
        }

        protected void customGridView1_RowCommand(object sender, System.Web.UI.WebControls.GridViewCommandEventArgs e)
        {

        }

        protected void customGridView1_RowCreated(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e)
        {
            Debug.Assert(e.Row.Cells.Count != 0);
        }

        protected void customGridView1_RowDataBound(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e)
        {
            Debug.Assert(e.Row.Cells.Count != 0);
        }

        protected void OnActionClick(object sender, EventArgs e)
        {
            
        }
    }
}
